package pattern.creational.simpleFactory;

/**
 * @Author Gavin
 * @date 2020.07.14 12:41
 */
public class Test {
    public static void main(String[] args) {
        VideoFactory factory = new VideoFactory();
        factory.getVideo("java").product();//第一种方式
        factory.getVideoByReflect(Python.class).product();//第二种方法通过反射获取
    }
}
